package com.rfid.project.model;

import javax.persistence.*;

import biz.core.IdEntity;

import java.util.Date;

@Entity
public class ProjectTask extends IdEntity {

	// 项目
	@ManyToOne
	@JoinColumn(name = "ProjectID")
	private Project project;

	// 任务创建者
	@ManyToOne
	@JoinColumn(name = "TaskCreatorID")
	private People taskCreator;

	// 任务描述
	private String taskDescription;

	// 创建时间
	private Date taskCreateTime;

	// 计划总工时数
	private Float planWorktime;

	// 实际总工时数
	private Float actualWorktime;

	// 计划完成日期
	private Date planFinishDate;

	// 实际完成日期
	private Date actualFinishDate;

	// 状态
	private String status;

	// 项目任务类型
	@ManyToOne
	@JoinColumn(name = "ProjectTaskTypeID")
	private ProjectTaskType projectTaskType;

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public People getTaskCreator() {
		return taskCreator;
	}

	public void setTaskCreator(People taskCreator) {
		this.taskCreator = taskCreator;
	}

	public String getTaskDescription() {
		return taskDescription;
	}

	public void setTaskDescription(String taskDescription) {
		this.taskDescription = taskDescription;
	}

	public Float getPlanWorktime() {
		return planWorktime;
	}

	public void setPlanWorktime(Float planWorktime) {
		this.planWorktime = planWorktime;
	}

	public Float getActualWorktime() {
		return actualWorktime;
	}

	public void setActualWorktime(Float actualWorktime) {
		this.actualWorktime = actualWorktime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public ProjectTaskType getProjectTaskType() {
		return projectTaskType;
	}

	public void setProjectTaskType(ProjectTaskType projectTaskType) {
		this.projectTaskType = projectTaskType;
	}

	public Date getPlanFinishDate() {
		return planFinishDate;
	}

	public void setPlanFinishDate(Date planFinishDate) {
		this.planFinishDate = planFinishDate;
	}

	public Date getActualFinishDate() {
		return actualFinishDate;
	}

	public void setActualFinishDate(Date actualFinishDate) {
		this.actualFinishDate = actualFinishDate;
	}

	public Date getTaskCreateTime() {
		return taskCreateTime;
	}

	public void setTaskCreateTime(Date taskCreateTime) {
		this.taskCreateTime = taskCreateTime;
	}

}
